<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="#">管理</a><span class="crumb-step">&gt;</span><span>新增</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="{:U('do_add')}" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <!--<tr>
                            <th width="120"><i class="require-red">*</i>分类：</th>
                            <td>
                                <select name="colId" id="catid" class="required">
                                    <option value="">请选择</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                        </tr>-->
                            <tr>
                                <th><i class="require-red">*</i>用户名：</th>
                                <td>
                                    <input class="common-text required"  datatype="*" nullmsg="用户名" errormsg="用户名"   id="supplier_user" name="supplier_user" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>用户密码：</th>
                                <td>
                                    <input  class="common-text required" id="supplier_pwd" name="supplier_pwd" size="50" value="" type="password">
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>公司名称：</th>
                                <td>
                                    <input class="common-text required"  datatype="*" nullmsg="公司名称" errormsg="公司名称"  id="company_name" name="company_name" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>所在地区：</th>
                                <td>
                                     <!-- 省份 -->
                        <select name="pro" id="pro">
                             <option>--请选择省份--</option>
                            <foreach name="region" item="v">
                                <option value="{$v.area_id}">{$v.area_name}</option>
                            </foreach>
                        </select>
                        <!-- 城市 -->
                        <select name="city" id="city">
                            <option>--请选择城市--</option>
                        </select>
                        <!-- 区县 -->
                        <select name="area" id="area">
                            <option>--请选择地区--</option>
                        </select>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司详细地址：</th>
                                <td>
                                    <input class="common-text required" datatype="*" nullmsg="公司详细地址" errormsg="公司详细地址" id="address" name="address" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司电话：</th>
                                <td>
                                    <input class="common-text required" id="tel" datatype="*"   nullmsg="公司电话" errormsg="公司电话" name="tel" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>电子邮件：</th>
                                <td>
                                    <input class="common-text required" id="email" datatype="e"   nullmsg="电子邮件" errormsg="电子邮件格式不对" name="email" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司规模：</th>
                                <td>
                                    <input class="common-text required" datatype="*"   nullmsg="公司规模" errormsg="公司规模" id="guimo" name="guimo" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>公司类型：</th>
                                <td>
                                    <input class="common-text required" id="company_type"  datatype="*"   nullmsg="公司类型" errormsg="公司类型" name="company_type" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>联系人：</th>
                                <td>
                                    <input class="common-text required" id="company_type"  datatype="*"   nullmsg="联系人" errormsg="联系人" id="contacts_name" name="contacts_name" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>联系人电话：</th>
                                <td>
                                    <input class="common-text required"  datatype="m"   nullmsg="联系人电话" errormsg="联系人电话" id="contacts_phone" name="contacts_phone" size="50" value="" type="text">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>营业执照号：</th>
                                <td>
                                    <input class="common-text required" datatype="*"   nullmsg="营业执照号" errormsg="营业执照号" id="business_licence_number" name="business_licence_number" size="50" value="" type="text">
                                </td>
                            </tr>
                           <tr>
                                <th><i class="require-red">*</i>营业执照号电子版：</th>
                                <td id="btn">
                                
                                    	<ul id="ul_pics" class="ul_pics clearfix"></ul>
    								<a href="" id='img_pic_h' target="_blank"><img id='img_pic_d' src="__PUBLIC__/images/rwlx_pic11.png" class="WU_cgrw_sctp1" width="120" height="120" /></a>
                                	<div class="WU_cgrw_sctp2Box " >上传图片</div>
                                    
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>法定经营范围：</th>
                                <td>
                                    
                                    <textarea name="business_sphere" class="common-textarea" id="business_sphere" cols="30" style="width: 98%;" rows="10"></textarea>
                                </td>
                            </tr>
                            
                          
                            <tr>
                                <th><i class="require-red">*</i>身份证证明照片：</th>
                                <td  id="btn2">
                                  	<ul id="ul_pics2" class="ul_pics clearfix"></ul>
                                    <a href="" id='img_pic_h2' target="_blank"><img id='img_pic_d2' src="__PUBLIC__/images/rwlx_pic11.png" class="WU_cgrw_sctp1" width="120" height="120" /></a>
    								
                                	<div class="WU_cgrw_sctp2Box ">上传图片</div>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>身份证反面照片：</th>
                                <td id="btn3">
                                
                                	<ul id="ul_pics3" class="ul_pics clearfix"></ul>
                                    <a href="" id='img_pic_h3' target="_blank"><img id='img_pic_d3' src="__PUBLIC__/images/rwlx_pic11.png" class="WU_cgrw_sctp1" width="120" height="120" /></a>
    								
                                	<div class="WU_cgrw_sctp2Box ">上传图片</div>
                                    
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>身份证号码：</th>
                                <td>
                                    <input class="common-text required"  datatype="*"   nullmsg="身份证号码" errormsg="身份证号码" id="id_card_no"  name="id_card_no" size="20" value="" type="text">
                                </td>
                            </tr>
                            
                            <tr>
                                <th><i class="require-red">*</i>审核状态：</th>
                                <td>
                                
                                <select name="status" size=1>
                                <option value="0" >未审核</option>
                                <option value="1" >审核通过</option>
                                <option value="-1" >审核不通过</option>
                                </select>
                               
                                
                                  
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>是否登录用户中心：</th>
                                <td>
                                <select name="dl_status" size=1>
                                <option value="0" >禁止登录</option>
                                <option value="1" >允许登录</option>
                               
                                </select>
                                   
                                </td>
                            </tr>
                           
                            
                            
                            
                            
                            
                            
                            
                          
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <script>
    $('#pro').change(function(){
        $.ajax({
            type:"post",
            url:"{:U('getArea')}",
            data:'pro_id='+$('#pro').val(),
            dataType:"json",
            success:function(data){
                $('#city').html(data);
            }
        });
    });

    $('#city').change(function(){
        $.ajax({
            type:"post",
            url:"{:U('getArea')}",
            data:'pro_id='+$('#city').val(),
            dataType:"json",
            success:function(data){
                $('#area').html(data);
            }
        });
    });
    $(function(){
    
         $("#myform").Validform({
            
         });  //就这一行代码！;
        
      
    
    })
</script>
<script type="text/javascript" src="__PUBLIC__/plupload/plupload.full.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/btn.js"></script>